package org.example.operator.impl;

import org.example.operator.Operator;
import org.example.operator.OperatorFactory;

import java.math.BigDecimal;

public class AddOperator implements Operator {

    static {
        OperatorFactory.addOperator('+', AddOperator::new);
    }

    @Override
    public String operate(BigDecimal num1, BigDecimal num2) {
        return num1.add(num2).toString();
    }
}
